/*
 *  This file is part of WWWPal.
 *
 *  Copyright (C) 2003  Dr. John Punin, Department of Computer Science
 *  Rensselaer Polytechnic Institute
 *
 *  WWWPal is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  WWWPal is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Foobar; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
#ifndef WLOGR_FRAME_H
#define WLOGR_FRAME_H

#include <gr_graph_fun.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <gr_xmlwrite.h>
#include <gr_xmlparser.h>

#define PERMS                   0664

typedef struct _tgr_frame {
  char *filename;
  short saved;
  GraphFrame *gf;
  struct pt *root; /* root of the tree */
  struct pt *broot;
  struct _tgr_frame *br_gr;
  struct _tgr_frame *gr_gr;
} tgrFrame;


tgrFrame *
new_tgr_frame(GraphFrame *gf);
void
set_browse_graph_frame(tgrFrame *cgf, tgrFrame *bgf);
void
set_group_graph_frame(tgrFrame *cgf, tgrFrame *ggf);
tgrFrame *
get_browse_graph_frame(tgrFrame *cgf);

tgrFrame *
get_group_graph_frame(tgrFrame *cgf);

int
save_current_graph(tgrFrame *tgf);

void
delete_tgr_frame(tgrFrame *tgf);

#endif  


